package cn.stylefeng.guns.sys.modular.enums;

import java.util.HashMap;
import java.util.Map;

public class UserTypes {

	public static final String Supplier = "supplier";
	public static final String Group = "group";
	public static final String Shop = "shop";
	public static final String SuperAdmin = "superAdmin";
	public static final String Common = "common";

	private static final Map<String,String> titleMap = new HashMap<String,String>();
	static {
		titleMap.put(Supplier, "供应商");
		titleMap.put(Group, "总部用户");
		titleMap.put(Shop, "门店用户");
		titleMap.put(SuperAdmin, "超级管理员");
		titleMap.put(Common, "普通用户");
	}

	public static String getTitle(String code) {
		return titleMap.get(code);
	}

}
